[PATCH] seq_file: Disallow extremely large seq buffer allocations
authorEric Sandeen <sandeen@redhat.com>
Tue, 6 Jul 2021 17:56:03 +0000 (19:56 +0200)
committerSalvatore Bonaccorso <carnil@debian.org>
Wed, 28 Jul 2021 05:55:40 +0000 (06:55 +0100)
commite05b08c49e21a98b6fa6bece8ea549f3150c03db
treecfb5af4ddf94e3e46a3644e98a3588138c54f359
parent66959de1d1e0b52cdc9b70da26abf77051b9655c
[PATCH] seq_file: Disallow extremely large seq buffer allocations

There is no reasonable need for a buffer larger than this,
and it avoids int overflow pitfalls.

Fixes: 058504edd026 ("fs/seq_file: fallback to vmalloc allocation")
Reported-by: Qualys Security Advisory <qsa@qualys.com>
Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name seq_file-Disallow-extremely-large-seq-buffer-allocat.patch
fs/seq_file.c